/*
 * @LastEditors: yuSeen
 * @LastEditTime: 2021-12-23 23:18:07
 * 天凉好个秋
 */

export interface IUserStore extends IUserStoreState, IUserStoreAction {}

// state类型
export interface IUserStoreState {
    userInfo: {
        nickname: string
        avatarUrl: string
        vipType: number
        [propName: string]: any
    },
    token: string | undefined
}

// action类型
export interface IUserStoreAction {
    setToken: (cookie: string) => never
    updateUserInfo: () => never
    logout: () => never
}